Previous Book Contents Book Index Next

Inside Macintosh: Using JBindery /
Chapter 1 - Using JBindery / JBindery Features


The Virtual File System Panel

Figure 1-8 shows the Virtual File System (VFS) panel of JBindery. You use this panel to specify a virtual directory when packaging your Java application as a standalone file.

Figure 1-8 The Virtual File System panel

The virtual file system lets you package Java classes and any other information your Java application requires (such as images or sound clips) in one file. These items are stored as though they were in a file hierarchy, so the Java application can access them normally. For example, say you have a Java program that requires two class files, Upper.class and Working.class, and a JPEG image photo.jpg contained in a folder called Images. Using the Virtual File System panel, you can include all of these files in one application file and preserve the file hierarchy as well. Figure 1-9 compares a virtual file system to a real one.

Note
The contents of a virtual file directory are stored in the data fork of the application file as an uncompressed read-only zip archive. For more information about data forks, see "Mac OS Resources" (page 20).
Figure 1-9 Real and virtual file systems


Previous Book Contents Book Index Next

© Apple Computer, Inc.
22 APR 1997